#pragma once

#include <QMainWindow>

class QSound;

QT_BEGIN_NAMESPACE
namespace Ui { class Block; }
QT_END_NAMESPACE

class Block : public QMainWindow
{
    Q_OBJECT

public:
    Block(QWidget* parent = nullptr);
    ~Block();
    void paintEvent(QPaintEvent* event);
    void DrawGameBackground();
 
private slots:

    void on_pushButton_pause_clicked();
    void on_pushButton_music_clicked();

private:
    Ui::Block* ui;

    QSound* startsound = NULL;
    bool playMusic = false;
    bool gameover = false;
    bool whetherBreak = false;
};
#endif // BLOCK_H

